<template>
  <div class="child">
    <h3>son组件---{{ car.name }}</h3>
    <!-- <Son></Son> -->
  </div>
</template>

<script setup>
import { inject } from 'vue'
// import Son from '@/components/child/son.vue'
// components: {
//   Son
// }
let car = inject('car')
console.log(car)
</script>

<style>
  .child {
    height: 100%;
    width: 100%;
    background-color: aqua;
  }
</style>